<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../jsp/common/head.jsp"%>






<div class="right">
       <div class="location">
           <strong>你现在所在的位置是:</strong>
           <span>订单管理页面</span>
       </div>


       <!--商家订单查询-->
      <table class="providerTable" cellpadding="0" cellspacing="0">
          <tr class="firstTr">
              <th width="10%">订单编码</th>
              <th width="20%">商品名称</th>
              <th width="10%">订单金额</th>
			  <th width="10%">成人人数</th>
			  <th width="10%">小孩人数</th>
              <th width="10%">创建时间</th>
              <th width="30%">操作</th>
          </tr>
          <c:forEach var="orders"  items="${orders.list}">
				<tr>
					<td>
					<span>${orders.ordercode}</span>
					</td>
					<td>
					<span>${orders.ordername}</span>
					</td>
					<%--<td>--%>
					<%--<span>${bill.providerName}</span>--%>
					<%--</td>--%>
					<td>
					<span>${orders.total_price}</span>
					</td>
					<td>
						<span>${orders.adult_number}</span>
					</td>
					<td>
						<span>${orders.child_number}</span>
					</td>

					<td>
					<span>
					<fmt:formatDate value="${orders.ordertime}" pattern="yyyy-MM-dd"/>
					</span>
					</td>
					<td>

					<span><a class="deleteBill" href="${pageContext.request.contextPath }/order/merchantsDeleteOrder?ordercode=${orders.ordercode}&userCode=${orders.usercode}&name=${orders.name}&total_price=${orders.total_price}&productcode=${orders.productcode}&child_number=${orders.child_number}&adult_number=${orders.adult_number}" ><img src="${pageContext.request.contextPath }/images/schu.png" alt="删除" title="删除"/></a></span>
					</td>
				</tr>
			</c:forEach>



      </table>
	<div style="font-size: 20px;float: right">
		<a class="prev"
		   href="${pageContext.request.contextPath}/order/querymerchantsOrder?page=${orders.pageNum-1}&size=6"
		   id="prePage">前一页</a>
		<span class="current">当前页${orders.getPageNum()}</span>
		<a class="num"
		   href="${pageContext.request.contextPath}/order/querymerchantsOrder?page=${orders.pageNum+1}&size=6">后一页</a>
		<a class="num" href="">总${orders.getPages()}页</ a>

	</div>
  </div>
</section>

<!--点击删除按钮后弹出的页面-->
<%--<div class="zhezhao"></div>--%>
<%--<div class="remove" id="removeBi">--%>
    <%--<div class="removerChid">--%>
        <%--<h2>提示</h2>--%>
        <%--<div class="removeMain">--%>
            <%--<p>你确定要删除该订单吗？</p>--%>
            <%--<a href="#" id="yes">确定</a>--%>
            <%--<a href="#" id="no">取消</a>--%>
        <%--</div>--%>
    <%--</div>--%>
<%--</div>--%>

<%@include file="../jsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/billlist.js"></script>